package com.webside.points.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.webside.points.mapper.TopSearchMapper;
import com.webside.points.model.TopSearchEntity;
import com.webside.points.service.TopSearchService;
@Service
public class TopSearchServiceImpl implements TopSearchService{

	
	@Autowired
	TopSearchMapper topSearchMapper;
	
	@Override
	public List<TopSearchEntity> findAll(TopSearchEntity topSearchEntity) {
		return topSearchMapper.findAll(topSearchEntity);
	}

	@Override
	public TopSearchEntity findById(int postTypeId) {
		return topSearchMapper.findById(postTypeId);
	}

	@Override
	public int insert(TopSearchEntity topSearchEntity) {
		return topSearchMapper.insert(topSearchEntity);
	}

	@Override
	public int delete(int postTypeId) {
		return topSearchMapper.delete(postTypeId);
	}

	@Override
	public int update(TopSearchEntity topSearchEntity) {
		return topSearchMapper.update(topSearchEntity);
	}

	@Override
	public int findCount(TopSearchEntity topSearchEntity) {
		return topSearchMapper.findCount(topSearchEntity);
	}

	@Override
	public List<TopSearchEntity> findTopSearch() {
		return topSearchMapper.findTopSearch();
	}

}
